/**
 * @version 2007-1-5
 * @author xalinx at gmail dot com
 */
package org.nanhill.commons.pattern.flow;

import java.lang.reflect.Method;

/**
 * @version 2007-1-5
 * @author xalinx at gmail dot com
 * 
 */
public class DefaultAction implements Action {
	private Object target;

	private Method targetMethod;

	public Object getTarget() {
		return target;
	}

	public void setTarget(Object target) {
		this.target = target;
	}

	private String id;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public DefaultAction(String id, Object target, Method targetMethod) {
		this.id = id;
		this.target = target;
		this.targetMethod = targetMethod;
	}

	public Method getTargetMethod() {
		return targetMethod;
	}

}
